package com.gc.common.mapper;

import com.gc.common.dto.HistoryDTO;
import com.gc.common.entity.History;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HistoryMapper {
    int deleteByPrimaryKey(Integer historyId);

    int deleteInIds(@Param("ids") String ids);

    int deleteInCarImeis(@Param("carImeis") String carImeis);
    
    int insert(History record);

    int insertSelective(History record);

    History selectByPrimaryKey(Integer historyId);

    int updateByPrimaryKeySelective(History record);

    int updateByPrimaryKey(History record);

    List<History> selectByDTO(@Param("dto") HistoryDTO dto);

    List<History> selectLatestHistorys();

    List<History> selectHistoryByCarImei(@Param("carImei") String carImei);

    History selectLatestHistoryByImei(@Param("carImei") String carImei);
}